#include <fermat/common/number_formatter.h>
#include <fermat/benchmark/fermat_benchmark.h>
#include <fermat/common/format.h>
#include <stdio.h>
#include <sstream>
#include <string>

BENCHMARK(common, format_int_fmt, 10, 1000)
{
  fermat::MemoryWriter out;
  out<<42;
  std::string s = out.str();
  (void)s;
}


BENCHMARK(common, format_int_ieee, 10, 1000)
{
  std::string s = fermat::NumberFormatter::format(43);
  (void)s;
}

BENCHMARK(common, format_int_sprinf, 10, 1000)
{
	char buff[128];
	sprintf(buff,"%d", 43);
}


